#include "findgroup.h"
#include "ui_findgroup.h"
#include <QMessageBox>
findgroup::findgroup(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::findgroup)
{
    ui->setupUi(this);
}

findgroup::~findgroup()
{
    delete ui;
}

void findgroup::on_pushButton_clicked()
{
    emit(sendgroupid(ui->lineEdit->text()));
}
void findgroup::groupidright(bool a){
    if(a){
        close();
    }
    else{
        QMessageBox::warning(this, tr("Waring"),
                                     tr("群号不存在！"),
                                      QMessageBox::Yes);
        close();
    }
}
